package com.urick.loadbanlance.dubbo;

import java.util.List;

/**
 * Design Theories:
 * <a href=""></a>
 *
 * @author uRick 2021/12/13 18:00
 * Email: rickwork@163.com
 * Wechat: yy3076815642
 * QQ: 3076815642
 * @since 1.0
 */
public interface ILoadBalance {
    long DEFAULT_WARMUP = 10 * 60 * 1000;
    int DEFAULT_WEIGHT = 100;

    /**
     * 通过负载算法获取服务
     *
     * @param instanceList 待负责实例列表
     * @return server
     */
    ServerInstance getServer(List<ServerInstance> instanceList);
}
